package com.yxw.yx_hotel.mapper;

import com.yxw.yx_hotel.vo.CustomerGrowthTrendVo;
import com.yxw.yx_hotel.vo.CustomerlistingsVo;
import com.yxw.yx_hotel.vo.RoomGrowthTrendVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  首页概览
 * @author liuxin
 * @date 2024.01.24
 */
@Repository
public interface OverviewMapper {

    /**
     * 客户/房源查询
     * @return
     */
    CustomerlistingsVo getCustomerlistings();

    /**
     * 客户增长趋势-查询近七天
     * @return
     */
    List<CustomerGrowthTrendVo> getCustomerGrowthTrend(@Param("queryRange") Integer queryRange);

    /**
     * 房源增长趋势
     * @param queryRange
     * @return
     */
    List<RoomGrowthTrendVo> getRoomGrowthTrend(@Param("queryRange") Integer queryRange);
}
